import VuiElement from '../base/element';

export default class VuiSpan extends VuiElement {
  /**
  * 创建Span
  * @param {*} className
  * @param {*} innerText
  * @param {*} title
  * @param {*} id
  */
  constructor(className, innerText, title, id) {
    super();
    const elt = document.createElement('span');
    if (className) elt.className = className;
    if (innerText) elt.appendChild(document.createTextNode(innerText));
    if (title) elt.title = title;
    if (id) elt.id = id;
    this.container = elt;
  }
}
